import 'package:flutter/material.dart';
import 'package:shop/test/ClipImageScreen.dart';
import 'package:shop/test/FirstHomeScreen.dart';
import 'package:shop/test/FutureBuilderScreen.dart';
import 'package:shop/test/IndexedListViewScreen.dart';
import 'package:shop/test/MyDragWidget.dart';
import 'package:shop/test/NotifierProviderScreen.dart';
import 'package:shop/test/ProviderScreen.dart';
import 'package:shop/web/common_web.dart';

class LeaseToolsScreen extends StatelessWidget{

  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('租赁工具'),
          centerTitle: true,
        ),

        body: Scrollbar(
            controller: ScrollController(),
            child: SingleChildScrollView(
              child: Column(
                mainAxisSize: MainAxisSize.max,
                children: <Widget>[
                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到Provider页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => ProviderScreen()));
                          }),
                    ),
                  ),

                  Container(
                      padding: EdgeInsets.all(5.0),
                      child: Row(
                        children: <Widget>[
                          ButtonTheme(
                            minWidth: 200.0,
                            height: 50.0,
                            //RaisedButton悬浮按钮
                            child: RaisedButton(
                              //按钮的阴影
                                elevation: 2.0,
                                //按下时的阴影
                                highlightElevation: 8.0,
                                //禁用时的阴影
                                disabledElevation: 0.0,
                                child: Text(("跳转到NotifierProvider页面")),
                                //按钮颜色
                                color: Colors.blue,
                                //按下时的按钮颜色
                                highlightColor: Colors.blue[700],
                                onPressed: () {
                                  Navigator.push(
                                      context,
                                      MaterialPageRoute(
                                          builder: (context) => NotifierProviderScreen()));
                                }),
                          ),
                        ],
                      )
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到FutureBuilder页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => FutureBuilderScreen()));
                          }),
                    ),
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到FirstHomeScreen页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => FirstHomeScreen()));
                          }),
                    ),
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到MyDragWidget页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => MyDragWidget()));
                          }),
                    ),
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到CommonWeb页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => CommonWebPage(url: 'https://store.fandanfanli.com')));
                          }),
                    ),
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到IndexedListView页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => IndexedListViewScreen()));
                          }),
                    ),
                  ),

                  Container(
                    padding: EdgeInsets.all(5.0),
                    child: ButtonTheme(
                      minWidth: 200.0,
                      height: 50.0,
                      //RaisedButton悬浮按钮
                      child: RaisedButton(
                        //按钮的阴影
                          elevation: 2.0,
                          //按下时的阴影
                          highlightElevation: 8.0,
                          //禁用时的阴影
                          disabledElevation: 0.0,
                          child: Text(("跳转到ClipImageScreen页面")),
                          //按钮颜色
                          color: Colors.blue,
                          //按下时的按钮颜色
                          highlightColor: Colors.blue[700],
                          onPressed: () {
                            Navigator.push(
                                context,
                                MaterialPageRoute(
                                    builder: (context) => ClipImageScreen()));
                          }),
                    ),
                  ),
                ],
              ),
            ))
    );

  }
}